package com.ht.ui;

import javax.swing.*;
import java.awt.*;

/**
 * Created by IntelliJ IDEA.
 * User: Yanxue
 * Date: 12-3-21
 */
public class SystemMonitorFrame extends JFrame {
    SysMonitorFrame sysMonitorFrame = new SysMonitorFrame();

    public SystemMonitorFrame() {
        setTitle(SysMonitorFrame.MODEL_NAME);
        setLayout(new BorderLayout());
        setSize(Toolkit.getDefaultToolkit().getScreenSize().width - 150, Toolkit.getDefaultToolkit().getScreenSize().height - 150);
        add(sysMonitorFrame.getContentPane(), BorderLayout.CENTER);
        setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
    }

    public void dispose() {
        super.dispose();
        sysMonitorFrame = null;
    }

}